package com.topvision.service.impl.glass;

import com.topvision.mapper.glass.MessageMapper;
import com.topvision.model.glass.Message;
import com.topvision.service.glass.MessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service("messageService")
public class MessageServiceImpl implements MessageService {
	@Autowired
	private MessageMapper messageMapper;
	
	@Override
	public Message queryObject(Integer id){
		return messageMapper.queryObject(id);
	}
	
	@Override
	public List<Message> queryList(Map<String, Object> map){
		return messageMapper.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return messageMapper.queryTotal(map);
	}
	
	@Override
	public void save(Message message){
		messageMapper.save(message);
	}
	
	@Override
	public void update(Message message){
		messageMapper.update(message);
	}
	
	@Override
	public void delete(Integer id){
		messageMapper.delete(id);
	}
	
	@Override
	public void deleteBatch(Integer[] ids){
		messageMapper.deleteBatch(ids);
	}
	
}
